const KEY = 'shenling-express-token'
const RefKEY = 'shenling-express-refToken'
const userInfo = 'shenling-express-userInfo'
export const setToken = token => localStorage.setItem(KEY, token)
export const getToken = () => localStorage.getItem(KEY)
export const delToken = () => localStorage.removeItem(KEY)
export const setRefToken = token => localStorage.setItem(RefKEY, token)
export const getRefToken = () => localStorage.getItem(RefKEY)
export const delRefToken = () => localStorage.removeItem(RefKEY)
export const setUserInfo = data => localStorage.setItem(userInfo, data)
export const getUserInfo = () => localStorage.getItem(userInfo)
export const delUserInfo = () => localStorage.removeItem(userInfo)
